package com.lottery.material.enumeration;

import lombok.Getter;

/**
 * Description：响应结果信息枚举类
 * Created by rambo on 2019-04-13 13:32
 */
@Getter
public enum ResultEnum {

    //====================================【admin后台状态码】====================================//
    ADMIN_ON_SUCCESS(200, "%s上架成功！"),
    ADMIN_ON_FAILURE(400, "%s上架失败！"),
    ADMIN_OFF_SUCCESS(200, "%s下架成功！"),
    ADMIN_OFF_FAILURE(400, "%s下架失败！"),

    //===================================【成功状态码（200）】===================================//
    SUCCESS(200, "请求成功"),
    REPORT_SUCCESS(200, "举报成功"),
    LIKE_SUCCESS(200, "点赞成功"),
    NO_LIKE_SUCCESS(200, "取消点赞成功"),
    FOLLOW_SUCCESS(200, "关注成功"),
    NO_FOLLOW_SUCCESS(200, "取消关注成功"),
    UPDATE_SUCCESS(200, "修改成功"),
    EXPERT_AUTH_SUCCESS(200, "专家认证成功"),
    CIRCLE_AUTH_SUCCESS(200, "恭喜已成为正式圈员，赶紧发帖去吧"),
    VIEW_ARTICLE_SUCCESS(200, "支付成功可免费查看"),
    VIEW_ARTICLE_CONFIRM_SUCCESS(200, "支付%s金币查看话题？"),
    VIEW_NOT_PUBLIC_ARTICLE_CONFIRM_SUCCESS(200, "内含比赛已经全部结束，是否任继续付费%s金币查看"),
    VIEW_PUBLIC_ARTICLE_CONFIRM_SUCCESS(200, "该文章目前已经可免费查看"),
    ALREADY_REWARD_ARTICLE_SUCCESS(200, "您已经打上该改文章，是否继续打赏"),
    REWARD_ARTICLE_SUCCESS(200, "打赏成功"),
    SET_CIRCLE_UNTOP_SUCCESS(200,"取消置顶成功"),
    SET_CIRCLE_TOP_SUCCESS(200,"置顶成功"),
    USER_AUTH_SUCCESS(200, "认证用户认证成功"),
    PROMOTION_PAY_TO_AUDIT_SUCCESS(200, "已成功争取到推广名额，该篇文章审核通过后将立即推广"),
    PROMOTION_PAY_SUCCESS(200, "推广成功，请刷新查看"),
    SETTING_SUCCESS(200, "%s设置成功"),
    REALNAME_AUTH_SUCCESS(200, "实名认证成功"),
    VALIDATECODE_SUCCESS(200, "验证成功"),
    SEND_MESSAGE_SUCCESS(200,"发送短信成功"),
    ARTICLE_COMMENT_SUCCESS(200, "文章评论成功"),
    NO_COLLECT_SUCCESS(200, "文章取消收藏成功"),
    COLLECT_SUCCESS(200, "文章收藏成功"),
    APPLY_HOT_TO_AUDIT_SUCCESS(200, "申请成功审核通过后将进入热帖"),
    APPLY_HOT_SUCCESS(200, "申请进入热帖成功，请刷新查看"),
    DELETE_ARTICLE_SUCCESS(200, "文章删除成功"),
    NO_TOP_SUCCESS(200, "文章取消置顶成功"),
    TOP_SUCCESS(200, "文章置顶成功"),
    GET_RECOMMEND_SUCCESS(200, "获取达人和圈子推荐信息成功"),
    GET_VERSION_SUCCESS(200, "获取版本列表信息成功"),
    GET_AREA_SUCCESS(200, "获取省市区成功"),

    //=============================【公用错误状态码（4501~5000之间）】============================//
    PARAMETER_NOT_NULL(4501, "参数%s不能为空！"),
    PARAMETER_ERROR(4502, "参数%s错误"),
    UPDATE_FAIL(4503, "修改失败"),
    STATUS_PERSISTENT_OPERATE_SQL_FAIL(4504, "持久化操作数据库失败"),
    PAYMENT_FAIL(4505, "支付失败"),
    GET_VERSION_EXCEPTION(4506, "获取版本列表信息出现异常"),

    //=========================【个人用户中心错误状态码（5001~5500之间）】=========================//
    PARSE_EXCEPTION(5001, "参数格式不正确，无法解析"),
    PARAMETER_BLANK_ERROR(5002, "参数%s不能为空！"),
    VALIDATECODEERROR_EXCEPTION(5003, "验证码错误!"),
    VALIDATECODE_FAIL_EXCEPTION(5004, "验证失败!"),
    PHONENUMBER_ERROR(5005, "手机号错误！"),
    REPORT_EXCEPTION(5006, "举报失败"),
    PHONENUMBER_EXIST(5007, "手机号已注册，请使用密码登录"),
    USER_NOT_EXIST(5008, "用户不存在"),
    USER_FORBIDDEN(5009, "用户被禁用"),
    PASSWORD_WRONG_ERROR(5010, "密码错误"),
    LOGIN_OUTOFDATE_ERROR(5011, "登录过期，请重新登录"),
    SET_CIRCLE_TOP_FAIL(5012,"设置置顶失败"),
    SET_CIRCLE_TOP_ALREADYCANCELD(5013,"已取消置顶,请勿重复提交"),
    SET_CIRCLE_TOP_ALREADYSETTOP(5014,"已置顶,请勿重复提交"),
    AUTHENTICATION_NOT_ACHIEVE(5015,"未达认证要求，请确认"),
    OLDPASSWORD_WRONG_ERROR(5016, "旧密码错误"),
    SAME_PASSWORD(5017, "新密码不可与旧密码相同！"),
    REALNAME_AUTH_FAIL(5018, "实名认证失败"),
    IDNUMBER_WRONG(5019,"身份证号码错误"),
    SETTING_FAIL(5020,"设置失败"),
    SUBMIT_FAIL(5022,"提交失败"),
    BANKCARD_WRONG(5021,"银行卡号错误"),
    SEND_MESSAGE_FAIL(5022,"发送短信失败"),
    EXPORT_USER_FAIL(5023,"同步tigase用户失败"),
    GET_RECOMMEND_EXCEPTION(5024,"获取达人和圈子推荐信息出现异常"),
    GET_AREA_EXCEPTION(5025,"获取省市区出现异常"),
    NICK_NAME_EXIST(5026,"昵称已经存在"),
    USER_NOT_EXIST_OR_FORBIDDEN(5027,"用户不存在或被禁用"),
    //============================【球事错误状态码（5501~6000之间）】=============================//
    REPORT_FAIL(5501, "举报失败"),
    LIKE_FAIL(5502, "点赞失败"),
    NO_LIKE_FAIL(5503, "取消点赞失败"),
    FOLLOW_FAIL(5504, "关注失败"),
    NO_FOLLOW_FAIL(5505, "取消关注失败"),
    NOT_ENOUGH_GOLD_FAIL(5506, "金币不足"),
    NOT_IDENTITY_AUTH_FAIL(5507, "检测到您未进行身份认证"),
    NOT_BANK_CARD_NUMBER_FAIL(5508, "检测到您未绑定银行卡"),
    NOT_FOLLOW_CIRCLE_FAIL(5509, "请先关注该圈子，成为预备圈员"),
    ALREADY_CIRCLE_MEMBER_FAIL(5510, "您已经是正式圈员"),
    NOT_QUALIFIED_POST_TOTAL_FAIL(5511, "累计发帖数量%d篇，还差%d篇达标，继续加油"),
    ARTICLE_NOT_EXIST_FAIL(5512, "未能查询到该文章，可能已经被删除"),
    ALREADY_AUTH_USER_FAIL(5513, "您已经是认证用户"),
    GET_COMPETITION_DETAIL_FAIL(5514, "未能查询到指定赛事信息"),
    PROMOTION_PAY_FAIL(5515, "当前推广名额已抢光，您可稍后再试"),
    PROMOTION_PAY_REJECT_FAIL(5516, "该文章审核被驳回，无法申请推广"),
    USER_NOT_EXIST_FAIL(5517, "未能查询到该用户，可能已经被删除"),
    COMMENT_NOT_EXIST_FAIL(5518, "未能查询到该评论，可能已经被删除"),
    CIRCLE_NOT_EXIST_FAIL(5519, "未能查询到该圈子，可能已经被删除"),
    ARTICLE_COMMENT_FAIL(5520, "文章评论失败"),
    NOT_AUTHOR_FAIL(5521, "非作者本人将无权限操作"),
    NO_COLLECT_FAIL(5522, "文章取消收藏失败"),
    COLLECT_FAIL(5523, "文章收藏失败"),
    APPLY_HOT_FAIL(5524, "文章已经申请过进入热帖"),
    APPLY_PROMOTION_FAIL(5525, "文章已经申请过推广"),
    AUTHOR_REWARD_FAIL(5526, "作者本人无法打赏自己的文章"),
    NO_PERMISSIONS_FAIL(5527, "暂无权限"),
    DELETE_ARTICLE_FAIL(5528, "文章删除失败"),
    ARTICLE_TOP_FAIL(5529, "当前圈子最多可置顶6篇文章，如需继续置顶，请取消任意一篇已置顶文章"),

    GET_ARTICLE_PAGE_LIST_EXCEPTION(5805, "获取首页、精彩和广场文章分页列表异常"),
    GET_COMPETITION_ARTICLE_PAGE_LIST_EXCEPTION(5806, "获取当前比赛下的所有文章分页列表异常"),
    GET_CIRCLE_ARTICLE_PAGE_LIST_EXCEPTION(5807, "获取当前圈子下的所有文章分页列表异常"),
    GET_ARTICLE_DETAIL_EXCEPTION(5808, "获取文章详情异常"),
    GET_COMMENT_PAGE_LIST_EXCEPTION(5809, "获取文章评论分页列表异常"),
    GO_COMMENT_EXCEPTION(5810, "文章评论异常"),
    GET_PAYMENT_DETAIL_EXCEPTION(5811, "获取文章付费明细异常"),
    GET_REWARD_DETAIL_EXCEPTION(5812, "获取文章打赏明细异常"),
    GO_COLLECT_EXCEPTION(5813, "文章收藏/取消收藏异常"),
    APPLY_HOT_EXCEPTION(5814, "申请进入热帖异常"),
    GET_PROMOTION_RULE_EXCEPTION(5815, "获取推广规则异常"),
    GET_REWARD_REASON_EXCEPTION(5816, "获取打赏理由异常"),
    DELETE_ARTICLE_EXCEPTION(5817, "文章删除异常"),
    GO_TOP_EXCEPTION(5818, "文章置顶/取消置顶异常"),

    GET_MENU_LIST_EXCEPTION(5901, "获取菜单列表异常"),
    GET_REPORT_TYPE_LIST_EXCEPTION(5902, "获取举报类型列表异常"),
    GET_BANNER_LIST_EXCEPTION(5903, "获取轮播图列表异常"),
    GET_COMPETITION_DETAIL_EXCEPTION(5904, "获取指定赛事信息异常"),

    //-----------------------圈子错误状态码（6001~6500之间）--------------------------------------
    GET_CIRCLE_INFO_LIST_EXCEPTION(6001, "获取圈子列表异常"),
    GET_CIRCLE_ATTENTTION_LIST_EXCEPTION(6002, "获取我的关注圈子异常"),
    GET_CIRCLE_NOT_FOUND_EXCEPTION(6003, "该圈子不存在"),
    GET_CIRCLE_MEMBER_USER_EXCEPTION(6004, "获取圈子成员接口异常"),
    GET_CIRCLE_GET_RULE_EXCEPTION(6005, "申请成为正式圈员规则出现异常"),


    //-----------------------达人错误状态码（6501~7000之间）--------------------------------------
    GET_FOLLOW_INFO_LIST_EXCEPTION(6502, "获取关注的达人列表接口异常"),
    GET_FOLLOW_RANKING_LIST_EXCEPTION(6503, "获取达人排行榜列表出现异常"),
    ;

    private Integer code;
    private String message;
    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
